<?php
header("Content-Type: application/json");
include('../../include/functions.inc.php');
$query = "SELECT ID,NOMBRE,FORMAT(PRECIO,2) PREC FROM cllg_item_factura ORDER BY ID";
$string = $db->query_toJson_sql($query, array("ID" => "ID", "NOMBRE" => "NOMBRE", "PRECIO" => "PREC"));
//$string=$db->query_toJson("cllg_item_factura",NULL,array("ID"=>"ID","NOMBRE"=>"NOMBRE","PRECIO"=>"FORMAT(PRECIO,2)"));
echo $string;
?>